﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;

namespace JumpstartApp.Views
{
    public sealed partial class Fail : Page
    {
        public Fail()
        {
            this.InitializeComponent();
        }

        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            var _Text = e.Parameter as String;
            if (string.IsNullOrWhiteSpace(_Text))
                _Text = "No text specified";
            this.FailText.Text = _Text;
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            // retry just means try to go home again, via the splash
            Window.Current.Content = new Views.Splash(typeof(AppHub), string.Empty);
        }
    }
}
